From 609ddec1f86963313b5e30a0b2159aa4188e6706 Mon Sep 17 00:00:00 2001 From: Paolo Borelli Date: Tue, 14 Jan 2014 20:29:46 +0100 Subject: [PATCH] Always return FALSE from the notebook leave_notify handler As discussed on IRC with Benjamin, this should not make much difference in practice, but it is more correct --- gtk/gtknotebook.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 175b61c803..0a532369ba 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -3305,21 +3305,21 @@ gtk_notebook_leave_notify (GtkWidget *widget, GtkNotebookPrivate *priv = notebook->priv; gint x, y; - if (!get_widget_coordinates (widget, (GdkEvent *)event, &x, &y)) - return FALSE; - - if (priv->prelight_tab != NULL) + if (get_widget_coordinates (widget, (GdkEvent *)event, &x, &y)) { - tab_prelight (notebook, (GdkEvent *)event); - } + if (priv->prelight_tab != NULL) + { + tab_prelight (notebook, (GdkEvent *)event); + } - if (priv->in_child) - { - priv->in_child = 0; - gtk_notebook_redraw_arrows (notebook); + if (priv->in_child) + { + priv->in_child = 0; + gtk_notebook_redraw_arrows (notebook); + } } - return TRUE; + return FALSE; } static GtkNotebookPointerPosition -- 2.30.2